package zouran.shounewsspringboot.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zouran
 * createDate：2023/5/31  20:48
 */
@Component
@ConfigurationProperties(prefix = MyConfig.PREFIX)
public class MyConfig {
    public static final String PREFIX="config";
    private String filePath;

    public String getFilePath() {
        return filePath;
    }
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}

